package com.googlecode.garbagecan.commons.clistudy.ftp;

public class Test {
	public static void main(String[] args) throws Exception {
		CommandParser parser = new CommandParser();
		Command cmd = null;
		
		System.out.println("--------------------------------------------------------------------------------");
		args = new String[] {};
		cmd = parser.parse(args);
		cmd.execute();
		
		System.out.println("--------------------------------------------------------------------------------");
		args = new String[] {"-h"};
		cmd = parser.parse(args);
		cmd.execute();
		
		System.out.println("--------------------------------------------------------------------------------");
		args = new String[] {"-v"};
		cmd = parser.parse(args);
		cmd.execute();
		
		System.out.println("--------------------------------------------------------------------------------");
		args = new String[] {"-get", "/opt/remote/test.log", "/opt/local/test.log"};
		cmd = parser.parse(args);
		cmd.execute();
		
		System.out.println("--------------------------------------------------------------------------------");
		args = new String[] {"-put", "/opt/local/test.log", "/opt/remote/test.log"};
		cmd = parser.parse(args);
		cmd.execute();
	}
}
